import Router from "koa-router";
import{findAllControllerFiles,registryRoute} from './helper.js'

let router=new Router();

let allControllerFiles = findAllControllerFiles();

registryRoute(router,allControllerFiles)

export const routes = function(){
    return router.routes
}